#ifndef _ENEMY_H_
#define _ENEMY_H_
#include "cocos2d.h"
USING_NS_CC;
class Enemy :public CCNode
{
public:
	Enemy();
	~Enemy();

	virtual bool init();
	
	void setDie();

	void reLife(CCNode* pSender);

	bool isLife(){ return m_life;  }

	void setLife(bool val){ m_life = val;  }

	void setType(int val){ m_type = val;  }

	void move( const CCPoint& heroPoint );

	void setDogShow(bool val);

	void setId(int id){ m_id = id; }

	CCArray* getEnemyBullet(){ return m_enemyBullets;  }

	CREATE_FUNC(Enemy);
private:
	CCSprite* m_dog;
	CCSprite* m_die_dog;
	bool m_life;
	int m_type;
	int m_id;
	CCArray* m_enemyBullets;

};

#endif